package cn.itcast.nems.studentrecord.web.controller.b;

import cn.itcast.nems.journal.dto.JournalTransferDelayCreateBo;
import cn.itcast.nems.journal.service.JournalTransferDelayService;
import lombok.RequiredArgsConstructor;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequiredArgsConstructor
@RestController
@RequestMapping("/b/journal/transfer/delay")
public class JournalTransferDelayController {

    private final JournalTransferDelayService service;

    /**
     * 待定班学员-详情-转入确定班-提交按钮
     */
    @PostMapping
    public ResponseEntity<String> createJournalTransferDelay(@RequestBody JournalTransferDelayCreateBo createBo) {
        return ResponseEntity.ok().body(service.createJournalTransferDelay(createBo));
    }

}
